/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.yunhoo.base.model;

import com.yunhoo.sys.util.common.LoginParam;
import com.yunhoo.sys.util.tree.TreeModel;
import java.util.Date;

/**
 *
 * @author Administrator
 */
public class Project extends TreeModel {

    private int id;
    private String finProjCode = "";//所属财政项目
    private String finProjName = "";
    private String deptCode;//部门
    private String deptName;
    private String managerCode;//负责人
    private String managerName;
    private Date beginDate;//开始日期
    private Date endDate;//结束日期 
    private Integer status = 1;//状态（启用/停用，1/0）
    private String memo = "";

    public Project() {
    }

    public Project(boolean initWithLoginInfo) {
        super(initWithLoginInfo);
        if (initWithLoginInfo) {
            this.deptCode = LoginParam.getDept().getCode();
            this.deptName = LoginParam.getDept().getName();
            this.managerCode = LoginParam.getPer().getCpsn_number();
            this.managerName = LoginParam.getPer().getCpsn_name();
        }
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getFinProjCode() {
        return finProjCode;
    }

    public void setFinProjCode(String finProjCode) {
        this.finProjCode = finProjCode;
    }

    public String getFinProjName() {
        return finProjName;
    }

    public void setFinProjName(String finProjName) {
        this.finProjName = finProjName;
    }

    public String getDeptCode() {
        return deptCode;
    }

    public void setDeptCode(String deptCode) {
        this.deptCode = deptCode;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getManagerCode() {
        return managerCode;
    }

    public void setManagerCode(String managerCode) {
        this.managerCode = managerCode;
    }

    public String getManagerName() {
        return managerName;
    }

    public void setManagerName(String managerName) {
        this.managerName = managerName;
    }

    public Date getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(Date beginDate) {
        this.beginDate = beginDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }
}
